package edu.fudan.jwxt.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "roleconstants")
public class RoleConstant {
    //用户身份
    public static final String ADMIN = "管理员";
    public static final String TEACHER = "教师";
    public static final String STUDENT = "学生";

    public static final String StudentStr="student";  // 学生str
    public static final String TeacherStr="teacher";  // 教师str
    public static final Integer StudentUIDLength=6;   // 学生uid长度
    public static final Integer TeacherUIDLength=8;   // 教师uid长度

    public static  String AdministratorUID = null; // 管理员uid
    public static  String AdministratorStr = null;  // 管理员str

    //用户状态发
    public static final String INITIAL_STATUS = "1";    //初始状态
    public static final String NORMAL_STATUS = "0";     //已修改过初始密码
    public static final String INVALID_STATUS = "2";   //正常毕业或离校


    public void setAdministratorUID(String administratorUID) {
        AdministratorUID = administratorUID;
    }

    public void setAdministratorStr(String administratorStr) {
        AdministratorStr = administratorStr;
    }

}
